package com.kimehwa.studyboot.service;

import com.kimehwa.studyboot.event.OrderSuccessEvent;
import org.springframework.context.ApplicationListener;

/**
 * @author xiaodongguan
 * @since 2021-07-11 15:53
 */
public class SmsService implements ApplicationListener<OrderSuccessEvent> {
    @Override
    public void onApplicationEvent(OrderSuccessEvent orderSuccessEvent) {
        this.sendSms();
    }

    public void sendSms(){
        System.out.println("发送短信....");
    }
}
